package com.zhonku.antifack.server.entity;

import java.util.HashSet;
import java.util.Set;

/**
 * Goods entity. @author MyEclipse Persistence Tools
 */

public class Goods implements java.io.Serializable {

	// Fields

	private String id;
	private Goodinfo goodinfo;
	private User user;
	private Set saleRecords = new HashSet(0);

	// Constructors

	/** default constructor */
	public Goods() {
	}

	/** minimal constructor */
	public Goods(Goodinfo goodinfo, User user) {
		this.goodinfo = goodinfo;
		this.user = user;
	}

	/** full constructor */
	public Goods(Goodinfo goodinfo, User user, Set saleRecords) {
		this.goodinfo = goodinfo;
		this.user = user;
		this.saleRecords = saleRecords;
	}

	// Property accessors

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Goodinfo getGoodinfo() {
		return this.goodinfo;
	}

	public void setGoodinfo(Goodinfo goodinfo) {
		this.goodinfo = goodinfo;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Set getSaleRecords() {
		return this.saleRecords;
	}

	public void setSaleRecords(Set saleRecords) {
		this.saleRecords = saleRecords;
	}

}